package edu.guet.cn.blogbasics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hejianding
 * @since 2021-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Worksheet对象", description="")
public class Worksheet implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工作表ID")
    @TableId(value = "worksheet_id", type = IdType.AUTO)
    private Long worksheetId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "计划信息")
    private String plan;

    @ApiModelProperty(value = "计划的详细信息")
    private String planDetailed;

    @ApiModelProperty(value = "计划完成时间")
    public String planTime;

    @ApiModelProperty(value = "当前状态，进行中，已完成，已删除")
    private String planStatus;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "计划创建时间")
    @TableField(fill =FieldFill.INSERT_UPDATE )
    private Date createTime;

    @ApiModelProperty(value = "计划更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


}
